from django.contrib import admin

# Register your models here.
from .models import GoodsGroup, Goods, Detail, GoodsBanner, Collect


@admin.register(GoodsGroup)
class GoodsGroupAdimin(admin.ModelAdmin):
    list_display = ['name','status']
# admin.site.registe(GoodsGroupAdimin,GoodsGroup)

@admin.register(Goods)
class GoodsAdimin(admin.ModelAdmin):
    list_display = ['group','title','price','stock','sales','is_on']

@admin.register(Detail)
class DetailAdimin(admin.ModelAdmin):
    list_display = ['goods','producer','norms']

@admin.register(GoodsBanner)
class GoodsBannerAdimin(admin.ModelAdmin):
    list_display = ['title','status']

@admin.register(Collect)
class CollectAdimin(admin.ModelAdmin):
    list_display = ['user', 'goods']

















